package cn.lxh.ymcc.feign;

import cn.lxh.ymcc.doc.CourseDoc;

import cn.lxh.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;


@FeignClient(value = "service-search",fallbackFactory = SearchFeignClientFallBackFactory.class)
public interface SearchFeignClient {

    @PostMapping("/saveCourse")
    JSONResult saveCourse(@RequestBody CourseDoc doc);

    @PostMapping("/deleteCourse")
    JSONResult deleteCourse(@RequestBody CourseDoc doc);
}
